package com.jianggy.facade;

import java.io.File;
import java.io.IOException;

/**
 * 写文件类
 * @author jianggy
 * @time 2018年9月20日 上午11:33:20
 * @description
 */
public class FileWriter {
	public void write(String path,String content) {
		java.io.FileWriter writer = null;
		try {
			writer = new java.io.FileWriter(new File(path));
			writer.write(content);
			
		} catch (Exception e) {
			e.printStackTrace();
		}finally {
			if (writer!=null) {
				try {
					writer.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
		
	}
}
